package com.hi.hiparty.entity;

import java.io.Serializable;
import java.util.Date;

public class Party implements Serializable {

	private static final long serialVersionUID = -3968763836850523755L;
	
	public final static int GENDER_NO = 0;
	public final static int GENDER_MALE = 1;
	public final static int GENDER_FEMALE = 2;

	public final static int STATUS_OK = 0;
	public final static int STATUS_DEL = 1;

	private String partyid;
	private String userid;
	private String username;
	private String title;
	private String theme;
	private Integer partyType; // 0默认，以后使用再扩充
	private String address;
	private String description;
	private Integer gender;// 0默认 1 男 2女 3不限
	private Date startTime;
	private Date endTime;
	private String[] tags;
	private String userPos; // ex."22.123,32,232" 经度，纬度
	private String partyPos;// 这个是根据地址变动？调用接口来解决
	private String distinct;

	private Integer status;

	private Date gmtCreate;

	private Date gmtModified;

	private Integer sexLimit;

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public Integer getPartyType() {
		return partyType;
	}

	public void setPartyType(Integer partyType) {
		this.partyType = partyType;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getGender() {
		return gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String[] getTags() {
		return tags;
	}

	public void setTags(String[] tags) {
		this.tags = tags;
	}

	public String getUserPos() {
		return userPos;
	}

	public void setUserPos(double userLon, double userLat) {
		this.userPos = userLon + "," + userLat;
	}

	public String getPartyPos() {
		return partyPos;
	}

	public void setPartyPos(double partyLon, double partyLat) {
		this.partyPos = partyLon + "," + partyLat;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * 设置坐标,不推荐用,可以考虑使用setUserPos(double userLon,double userLat)
	 * 
	 * @param userPos
	 */
	public void setUserPos(String userPos) {
		this.userPos = userPos;
	}

	/**
	 * 设置坐标,不推荐用,可以考虑使用setPartyPos(double userLon,double userLat)
	 * 
	 * @param partyPos
	 */
	public void setPartyPos(String partyPos) {
		this.partyPos = partyPos;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

	public String getTheme() {
		return theme;
	}

	public void setTheme(String theme) {
		this.theme = theme;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getPartyid() {
		return partyid;
	}

	public void setPartyid(String partyid) {
		this.partyid = partyid;
	}

	public Integer getSexLimit() {
		return sexLimit;
	}

	public void setSexLimit(Integer sexLimit) {
		this.sexLimit = sexLimit;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getDistinct() {
		return distinct;
	}

	public void setDistinct(String distinct) {
		this.distinct = distinct;
	}

}
